package cj.web.vote.domain;
/*
 *  
 *  
*/
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import java.io.Serializable;

/**
 * TODO: add class/table comments
 */
public class VoteLog implements Serializable {

    protected Integer id;
	protected String wxOpenid;
	protected String wxCity;
	protected String wxCountry;
	protected String wxHeadimgurl;
	protected String wxNickname;
	protected String wxProvince;
	protected String wxSex;
	protected String wxUnionid;
	protected Integer voteId;
	protected Integer voteSongId;
	protected java.util.Date createAT;
	protected java.util.Date updateAT;


	/**
	 * Default Empty Constructor for class VoteLog
	 */
	public VoteLog () {
		super();
	}
	
	/**
	 * Default Key Fields Constructor for class VoteLog
	 */
	public VoteLog (
		 Integer in_id
        ) {
		this.setId(in_id);
    }

    

	/**
	 * 	 * @return Integer
     * 
	 */
	public Integer getId() {
		return this.id;
	}
	
	/**
	 * Set the id
	 */	
	public void setId(Integer aValue) {
		this.id = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getWxOpenid() {
		return this.wxOpenid;
	}
	
	/**
	 * Set the wxOpenid
	 */	
	public void setWxOpenid(String aValue) {
		this.wxOpenid = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getWxCity() {
		return this.wxCity;
	}
	
	/**
	 * Set the wxCity
	 */	
	public void setWxCity(String aValue) {
		this.wxCity = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getWxCountry() {
		return this.wxCountry;
	}
	
	/**
	 * Set the wxCountry
	 */	
	public void setWxCountry(String aValue) {
		this.wxCountry = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getWxHeadimgurl() {
		return this.wxHeadimgurl;
	}
	
	/**
	 * Set the wxHeadimgurl
	 */	
	public void setWxHeadimgurl(String aValue) {
		this.wxHeadimgurl = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getWxNickname() {
		return this.wxNickname;
	}
	
	/**
	 * Set the wxNickname
	 */	
	public void setWxNickname(String aValue) {
		this.wxNickname = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getWxProvince() {
		return this.wxProvince;
	}
	
	/**
	 * Set the wxProvince
	 */	
	public void setWxProvince(String aValue) {
		this.wxProvince = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getWxSex() {
		return this.wxSex;
	}
	
	/**
	 * Set the wxSex
	 */	
	public void setWxSex(String aValue) {
		this.wxSex = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getWxUnionid() {
		return this.wxUnionid;
	}
	
	/**
	 * Set the wxUnionid
	 */	
	public void setWxUnionid(String aValue) {
		this.wxUnionid = aValue;
	}	


	public Integer getVoteId() {
		return voteId;
	}

	public void setVoteId(Integer voteId) {
		this.voteId = voteId;
	}

	public Integer getVoteSongId() {
		return voteSongId;
	}

	public void setVoteSongId(Integer voteSongId) {
		this.voteSongId = voteSongId;
	}

	/**
	 * 	 * @return java.util.Date
	 * 
	 */
	public java.util.Date getCreateAT() {
		return this.createAT;
	}
	
	/**
	 * Set the createAT
	 * @spring.validator type="required"
	 */	
	public void setCreateAT(java.util.Date aValue) {
		this.createAT = aValue;
	}	

	/**
	 * 	 * @return java.util.Date
	 * 
	 */
	public java.util.Date getUpdateAT() {
		return this.updateAT;
	}
	
	/**
	 * Set the updateAT
	 * @spring.validator type="required"
	 */	
	public void setUpdateAT(java.util.Date aValue) {
		this.updateAT = aValue;
	}	

	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof VoteLog)) {
			return false;
		}
		VoteLog rhs = (VoteLog) object;
		return new EqualsBuilder()
				.append(this.id, rhs.id)
				.append(this.wxOpenid, rhs.wxOpenid)
				.append(this.wxCity, rhs.wxCity)
				.append(this.wxCountry, rhs.wxCountry)
				.append(this.wxHeadimgurl, rhs.wxHeadimgurl)
				.append(this.wxNickname, rhs.wxNickname)
				.append(this.wxProvince, rhs.wxProvince)
				.append(this.wxSex, rhs.wxSex)
				.append(this.wxUnionid, rhs.wxUnionid)
				.append(this.voteId, rhs.voteId)
				.append(this.voteSongId, rhs.voteSongId)
				.append(this.createAT, rhs.createAT)
				.append(this.updateAT, rhs.updateAT)
				.isEquals();
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973)
				.append(this.id) 
				.append(this.wxOpenid) 
				.append(this.wxCity) 
				.append(this.wxCountry) 
				.append(this.wxHeadimgurl) 
				.append(this.wxNickname) 
				.append(this.wxProvince) 
				.append(this.wxSex) 
				.append(this.wxUnionid) 
				.append(this.voteId) 
				.append(this.voteSongId) 
				.append(this.createAT) 
				.append(this.updateAT) 
				.toHashCode();
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this)
				.append("id", this.id) 
				.append("wxOpenid", this.wxOpenid) 
				.append("wxCity", this.wxCity) 
				.append("wxCountry", this.wxCountry) 
				.append("wxHeadimgurl", this.wxHeadimgurl) 
				.append("wxNickname", this.wxNickname) 
				.append("wxProvince", this.wxProvince) 
				.append("wxSex", this.wxSex) 
				.append("wxUnionid", this.wxUnionid) 
				.append("status", this.voteId) 
				.append("voteSongID", this.voteSongId) 
				.append("createAT", this.createAT) 
				.append("updateAT", this.updateAT) 
				.toString();
	}



}
